package com.moxi.mogublog.sms.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * description
 *
 * @author LiShuai
 * @date 2020/5/28 16:32
 */
@Component
@Configuration
@ConfigurationProperties(value = "params.ali.sms")
public class SmsProperties {

    /**
     * 是否发送短信:false-不发送(默认)，true-发送；
     */
    private boolean open;

    private String accessKeyId;

    private String accessKeySecret;

    public boolean isOpen() {
        return open;
    }

    public void setOpen(boolean open) {
        this.open = open;
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }
}
